﻿<UserControl x:Class="MusicExplorer.Resources.Control.LoadingTreeviewIndicator"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Margin="0" Height="16" Width="16" Padding="0">
    <Image Name="imgBusy" Source="..\Images\Icons\indicator.png">
        <Image.RenderTransform>
            <RotateTransform Angle="0" CenterX="8" CenterY="8" />
        </Image.RenderTransform>
        <Image.Triggers>
            <EventTrigger RoutedEvent="Window.Loaded">
                <BeginStoryboard Name="rotatingStoryboard">
                    <Storyboard>
                        <DoubleAnimation
                            Storyboard.TargetName="imgBusy"
                            Storyboard.TargetProperty="RenderTransform.(RotateTransform.Angle)"
                            From="0" To="360" Duration="0:0:1.5" RepeatBehavior="Forever"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Image.Triggers>
    </Image>
</UserControl>
